package com.xja.dubbo.service.impl;

import com.xja.dubbo.entity.Easybuy_product_images;
import com.xja.dubbo.mapper.Easybuy_product_imagesMapper;
import com.xja.dubbo.service.ProductImageService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author ycz
 * @create 2021-12-18-14:19
 */
@Component
@Service(interfaceClass = ProductImageService.class)
public class ProductImageServiceImpl implements ProductImageService {

    @Autowired
    private Easybuy_product_imagesMapper easybuy_product_imagesMapper;

    @Override
    public List<Easybuy_product_images> selectImage(Integer id) throws Exception {
        List<Easybuy_product_images> easybuy_product_images = easybuy_product_imagesMapper.selectImage(id);

        return easybuy_product_images;
    }
}
